<template>
  <fieldset>
    <legend>子组件</legend>
    <h1>zzzzzz</h1>
    <h2>{{ msg }}</h2>
    <h3>provide:{{ msg2 }}</h3>
    <h3>provide:{{ name }}</h3>
  </fieldset>
</template>

<script>
export default {
  inject: ["msg2","name"],
  data() {
    return {
      msg: "v50 KFC crazy Thursday",
    };
  },
  methods: {
    change() {
      this.msg = "black Friday";
    },
  },
};
</script>